<div class="row">
  <div class="col-md-11">
    <h1><%= icon "fas", "thumb-tack", class: "text-muted" if @forum_thread.pinned? %> <%= @forum_thread.title %></h1>
  </div>

  <% if is_moderator_or_owner?(@forum_thread) %>
    <div class="col-md-1">
      <%= link_to icon("fas","pencil"), simple_discussion.edit_forum_thread_path(@forum_thread),
        class: "text-muted",
        data: { toggle: "tooltip", placement: "left" },
        title: t('edit_this_thread') %>
    </div>
  <% end %>

</div>

<p class="thread-details">
  <strong><%= category_link(@forum_thread.forum_category) %></strong>
  • <%= t('asked_time_ago', time: time_ago_in_words(@forum_thread.created_at), author: @forum_thread.user.name) %>
</p>

<%= render partial: "simple_discussion/forum_posts/forum_post", collection: @forum_thread.forum_posts.includes(:user).sorted %>

<%= render partial: "simple_discussion/forum_posts/form" if user_signed_in? %>
